/**
 *
 * @param {string} s
 * @returns {boolean}
 */
function isValid(s) {
    let length = s.length;
    if (!length) {
        return true;
    }
    s = s.replace(/(\{\})|(\(\))|(\[\])/g, "");
    if (length === s.length) {
        return false;
    }

    return isValid(s);
}
